package com.song.mall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.song.common.utils.PageUtils;
import com.song.mall.product.entity.AttrEntity;
import com.song.mall.product.vo.AttrGroupRelationVo;
import com.song.mall.product.vo.AttrRespVo;
import com.song.mall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author Songchao
 * @email 2364043569@qq.com
 * @date 2021-08-07 21:44:53
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);


    void saveAttr(AttrVo attr);


    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String type);


    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrVo attr);


    List<AttrEntity> getRelationAttr(Long attrgroupId);


    void deleteRelation(AttrGroupRelationVo[] vos);


    PageUtils getNoRelationAttr(Map<String, Object> params,Long attrgroupId);

    //在指定的所有属性集合里面，挑出检索属性
    List<Long> selectSearchAttrIds(List<Long> attrIds);
}

